package com.qf.feign;

import com.qf.entity.Hotal;
import com.qf.entity.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.io.Serializable;
import java.util.List;

@FeignClient("MICRO-HOTAL")
public interface HotalFeign {
    @RequestMapping("/hotal/list")
    R<List<Hotal>> list();
    @RequestMapping("/hotal/insert")
    R<Boolean> insert(@RequestBody Hotal hotal);
    @RequestMapping("/hotal/getById")
    R<Hotal> queryOne(@RequestParam Integer hid);
}
